package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.IsDel;
import com.lh.common.enums.TrueFalseEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_dobo_code:夺宝号
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_dobo_code")
@Alias("doboCode")
@Data
public class DoboCode implements Serializable {
    @ApiModelProperty(value = "")
    @TableField(value = "cid")
    @TableId
    private Long cid;

    @ApiModelProperty(value = "夺宝期数ID")
    @Column(name = "period_id")
    private Long periodId;

    @ApiModelProperty(value = "用户id")
    @Column(name = "user_id")
    private Long userId;

    @ApiModelProperty(value = "订单号")
    @Column(name = "order_item")
    private String orderItem;

    @ApiModelProperty(value = "夺宝码")
    @Column(name = "period_code")
    private String periodCode;

    @ApiModelProperty(value = "购买时间")
    @Column(name = "buy_time")
    private Date buyTime;

    @ApiModelProperty(value = "结果 0:未中奖 1:已中奖")
    @Column(name = "result")
    private TrueFalseEnum result;

    @ApiModelProperty(value = "")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "")
    @Column(name = "is_del")
    private IsDel isDel;

    /**
     * ovmal_dobo_code
     */
    private static final long serialVersionUID = 1L;
}
